﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace Chinaer.Model.Entities
{
    /// <summary>
    /// 中心公告表
    /// </summary>
    [Table("ZhongXinGongGao")]
    public class Model_ZhongXinGongGao : Model_Base
    {
        [Key]
        [Column("ID")]
        [Required]
        public string ID { get; set; }
        /// <summary>
        /// 所属管理员编号
        /// </summary>
        public string AdministratorID { get; set; }
        /// <summary>
        /// 标题
        /// </summary>
        public string Title { get; set; }

        /// <summary>
        /// 公告内容
        /// </summary>
        [Required]
        public string Content { get; set; }
        /// <summary>
        /// 有效期
        /// </summary>
        public DateTime? YouXiaoQi { get; set; }
        /// <summary>
        /// 结束时间
        /// </summary>
        public DateTime? EndTime { get; set; }
        /// <summary>
        /// 是否阅读中心公告
        /// </summary>
        private bool? _isReadZhongXinGongGao = false;
        /// <summary>
        /// 商家端是否阅读中心公告编号
        /// </summary>
        public bool? IsReadZhongXinGongGao
        {
            get
            {
                return _isReadZhongXinGongGao;
            }
            set
            {
                _isReadZhongXinGongGao = value;
            }

        }
    }
}
